package com.kingint.web.portal.serve.service;

import com.kingint.mbg.dto.rushHouse.RushHouseFrontDetails;
import com.kingint.mbg.dto.rushHouse.RushHouseFrontParam;
import com.kingint.mbg.ser.entity.SerCheckRoom;
import com.kingint.mbg.ser.entity.SerRushHouse;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 发布赶房表 服务类
 * </p>
 *
 * @author wxh
 * @since 2021-01-06
 */
public interface RushHouseService extends IService<SerRushHouse> {

    /**
     * 发布赶房工单
     * @param rushHouseFrontParam
     * @return
     */
    int insertRushHouseInfo(RushHouseFrontParam rushHouseFrontParam);

    /**
     * 查询对应赶房相关的详情信息
     * @param id
     * @return
     */
    RushHouseFrontDetails getRushHouseInfoById(Integer id);

    /**
     * 查询 查房，查遗留，消费等
     * @param id
     * @return
     */
    SerCheckRoom getCheckRoomInfo(Integer id);

    /**
     * 完成查房任务
     * @param serCheckRoom
     * @return
     */
    int finishCheckRoomInfo(SerCheckRoom serCheckRoom);

    /**
     * 开始相关的清洁
     * @param status
     * @return
     */
    int startRushHouseInfo(Integer status,Integer id);

    /**
     * 获取用户待接单信息
     * @return
     */
    List<RushHouseFrontParam> getWaitReceiveList();

    /**
     * 清洁人员接单
     * @param id
     * @return
     */
    Integer receiveOrderInfo(Integer id);

    /**
     * 提交布草相关信息
     * @param details
     * @return
     */
    int submitArrangeInfo(RushHouseFrontDetails details);

    /**
     * 验收工单
     * @param status
     * @param id
     * @return
     */
    int completeRushHouseInfo(Integer status, Integer id);
}
